package com.gl.saasservice.entity;


import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "saas_smart_lock_card")
public class SmartLockCard extends IdEntity {
    @Basic
    @Column(name = "lock_id", nullable = true)
    private Long lockId; // 智能锁绑定id

    @Basic
    @Column(name = "lock_auth_id", nullable = true)
    private Long lockAuthId; // 用户授权id

    @Basic
    @Column(name = "return_card_id", nullable = true)
    private Long returnCardId; // 厂商密码授权id

    @Basic
    @Column(name = "auth_type", nullable = true)
    private Integer authType; // 设置方式：1永久 2时间期限 3次数

    @Basic
    @Column(name = "type", nullable = true)
    private Integer type; // 卡类型：1身份证 2CPU卡

    @Basic
    @Column(name = "auth_time", nullable = true)
    private Date authTime; // 授权时间

    @Basic
    @Column(name = "limit_day", nullable = true)
    private Integer limitDay; // 时间期限(天)

    @Basic
    @Column(name = "author_number", nullable = true)
    private Integer authorNumber; // 授权次数

    @Basic
    @Column(name = "times", nullable = true)
    private Integer times; // 剩余次数

    @Basic
    @Column(name = "start_time", nullable = true)
    private Date startTime; // 开始时间

    @Basic
    @Column(name = "end_time", nullable = true)
    private Date endTime; // 结束时间

    @Basic
    @Column(name = "card_number", nullable = true)
    private String cardNumber; // cpu卡号/身份证号码内容

    @Basic
    @Column(name = "card_id", nullable = true)
    private String cardId; // 卡号id

    @Basic
    @Column(name = "card_index", nullable = true)
    private Integer cardIndex; // 卡序号:50-100

    @Basic
    @Column(name = "card_index_num", nullable = true)
    private Integer cardIndexNum; // 卡序号编码

    @Basic
    @Column(name = "status", nullable = true)
    private Integer status; // 状态：0待执行 1成功 2失败

    @Basic
    @Column(name = "create_time", nullable = true)
    private Date createTime;// 创建时间

    @Basic
    @Column(name = "last_update_time", nullable = true)
    private Date lastUpdateTime;// 创建时间

    @Basic
    @Column(name = "f_authorization_id", nullable = true)
    private String fAuthorizationId; // 亚略特授权id

    @Basic
    @Column(name = "f_app_user_id", nullable = true)
    private String fAppUserId; // 亚略特授权用户id

    @Basic
    @Column(name = "identification", nullable = true)
    private String identification;//天网互联标识

    public Long getReturnCardId() {
        return returnCardId;
    }

    public void setReturnCardId(Long returnCardId) {
        this.returnCardId = returnCardId;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public Long getLockId() {
        return lockId;
    }

    public void setLockId(Long lockId) {
        this.lockId = lockId;
    }

    public Long getLockAuthId() {
        return lockAuthId;
    }

    public void setLockAuthId(Long lockAuthId) {
        this.lockAuthId = lockAuthId;
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getAuthTime() {
        return authTime;
    }

    public void setAuthTime(Date authTime) {
        this.authTime = authTime;
    }

    public Integer getLimitDay() {
        return limitDay;
    }

    public void setLimitDay(Integer limitDay) {
        this.limitDay = limitDay;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public Integer getCardIndex() {
        return cardIndex;
    }

    public void setCardIndex(Integer cardIndex) {
        this.cardIndex = cardIndex;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getAuthorNumber() {
        return authorNumber;
    }

    public void setAuthorNumber(Integer authorNumber) {
        this.authorNumber = authorNumber;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Integer getCardIndexNum() {
        return cardIndexNum;
    }

    public void setCardIndexNum(Integer cardIndexNum) {
        this.cardIndexNum = cardIndexNum;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public String getfAuthorizationId() {
        return fAuthorizationId;
    }

    public void setfAuthorizationId(String fAuthorizationId) {
        this.fAuthorizationId = fAuthorizationId;
    }

    public String getfAppUserId() {
        return fAppUserId;
    }

    public void setfAppUserId(String fAppUserId) {
        this.fAppUserId = fAppUserId;
    }

}
